<?php 

// Globale Variablen Definieren
$global_variables = array(

// Allgemeine Einstellungen     
	'PATH_TO_SCRIPT' => '/', // Wenn nicht im Root-verzeichnis, dann hier den Pfad angeben zum Script
	'STEAM_KEY' => "C086AB50054408B7A0FA42ABC467EAC9", // Steam public key für API
	"HOME_PATH" => "http://".$_SERVER['SERVER_NAME']."/", // mit Slash "/" am ende
	"HOME_PATH_REL" => "",
	"START_ELO" => 1200,
		"DEBUG" => true,
	"DR" => $_SERVER['DOCUMENT_ROOT'],
	"PROJECT_PATH" => dirname(__FILE__),
		"DIAMONDELO" => 1800,
		"GOLDELO" => 1500,
		"SILVERELO" => 1100,
		
		"MATCHCANCELBORDER" => 70,
		"RELEVANTCANCELCOUNT" => 7,
		"LEAVEMATCHELOPUNISH" => 50
	
);

// DEV Umgebung
if(strpos($_SERVER['SERVER_NAME'], "dev.") === 0){
	$global_variables['DB_HOST'] = "localhost";
	$global_variables['DB_USERNAME'] = "d015fe83";
	$global_variables['DB_PW'] = "RK2VPLLkDMSChWH9";
	$global_variables['DB_NAME'] = "d015fe83";
	$global_variables['DB_TABLE_PREFIX'] = "";
}
// LIVE Umgebung
else{
	$global_variables['DB_HOST'] = "localhost";
	$global_variables['DB_USERNAME'] = "d0168abc";
	$global_variables['DB_PW'] = "xsXfAvkqpeJx4HdU";
	$global_variables['DB_NAME'] = "d0168abc";
	$global_variables['DB_TABLE_PREFIX'] = "";
}

// Globale Variablen global definieren
foreach($global_variables as $k => $v){
	define($k, $v); 
}

require_once(DR.HOME_PATH_REL."/inc/db.php");
require_once(DR.HOME_PATH_REL."/inc/inc_classes.php");

require($pfad.'/Smarty/Smarty.class.php');
$smarty = new Smarty();

$smarty->setTemplateDir($pfad.'/templates');
$smarty->setCompileDir($pfad.'/Smarty/templates_c');
$smarty->setCacheDir($pfad.'/Smarty/cache');
$smarty->setConfigDir($pfad.'/Smarty/configs');

?>